package online.sixfish.common.eunmration;


import java.util.Arrays;
import java.util.List;

/**
 * 内容审核结果类型枚举
 * @author sixFish
 * @date 2024/04/25
 */
public enum ContentAuditConclusionTypeEnum {
    COMPLIANT(1, "合规"),
    NOT_COMPLIANT(2, "不合规"),
    SUSPECTED(3, "疑似"),
    REVIEW_FAILED(4, "审核失败");

    private final int id;
    private final String desc;

    ContentAuditConclusionTypeEnum(int id, String desc) {
        this.id = id;
        this.desc = desc;
    }

    public int getId() {
        return id;
    }

    public String getDesc() {
        return desc;
    }

    public static ContentAuditConclusionTypeEnum getById(int id) {
        for (ContentAuditConclusionTypeEnum conclusionType : ContentAuditConclusionTypeEnum.values()) {
            if (id == conclusionType.id) {
                return conclusionType;
            }
        }
        return null;
    }

    public static List<ContentAuditConclusionTypeEnum> getAllConclusionTypes() {
        return Arrays.asList(ContentAuditConclusionTypeEnum.values());
    }
}